﻿<%@ Page Language="C#" MasterPageFile="~/Paginas/Paginas Master/Paginasweb.Master" AutoEventWireup="true" CodeBehind="NuevaMedida.aspx.cs" Inherits="bi4homev3.Paginas.NuevaMedida" Title="Página sin título" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="bi4homev3" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style10
        {
            width: 462px;
        }
        .style11
        {
            width: 130px;
        }
        .style12
        {
            width: 311px;
        }
        .style15
        {
            font-family: Arial, Helvetica, sans-serif;
            width: 95px;
        }
        .style18
        {
            font-family: Arial, Helvetica, sans-serif;
            text-align: left;
        }
        .style19
        {
            font-family: Arial, Helvetica, sans-serif;
            font-weight: bold;
            width: 180px;
        }
        .style20
        {
            width: 412px;
            text-align: left;
        }
        .style21
        {
            width: 255px;
            font-family: Arial, Helvetica, sans-serif;
        }
        .style22
        {
            height: 40px;
            width: 124px;
        }
        </style>
      

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formulario" runat="server">
      <asp:Label ID="Label1" runat="server" style="color: #000000; font-weight: 700;" Text="Registro de Nueva Medida Economica" 
                    CssClass="style21"></asp:Label>
      <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" Height="216px" 
        Width="437px">
        <WizardSteps>
            <asp:WizardStep ID="WizardStep1" runat="server" title="Medida">
                  <table class="style10" align="left">
        <tr>
            <td class="style19" colspan="2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style15">
                Nombre</td>
            <td class="style20" align="left">
                <asp:TextBox ID="nombre" runat="server" Width="176px" CssClass="style18" 
                    Height="24px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="nombre" CssClass="style18" ErrorMessage="Campo Requerido"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style15">
                Descripcion</td>
            <td class="style20">
                <asp:TextBox ID="descripcion" runat="server" Width="292px" CssClass="style22"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style15">
                Fecha de Inicio</td>
            <td class="style20" align="left">

                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
                    EnableScriptGlobalization="True">
                </asp:ToolkitScriptManager>
                <asp:TextBox ID="fecha1" runat="server" CssClass="style22"></asp:TextBox>
                <asp:CalendarExtender    
                    ID="CalendarExtender1"    
                    TargetControlID="fecha1"    
                    runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="fecha1" CssClass="style22" 
                    ErrorMessage="Campo Requerido"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style15">
                Fecha de Fin</td>
            <td class="style20" align="left">
                <asp:TextBox ID="fecha2" runat="server" CssClass="style22" Height="24px"></asp:TextBox>
                <asp:CalendarExtender    
                    ID="CalendarExtender2"    
                    TargetControlID="fecha2"    
                    runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="fecha2" CssClass="style22" 
                    ErrorMessage="Campo Requerido"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style15">
                &nbsp;</td>
            <td class="style20" align="right">
                <asp:Label ID="RESPUESTA" runat="server" style="color: #33CC33" 
                    CssClass="style21"></asp:Label>
                <asp:Button ID="Button1" runat="server" Text="Confirmar" onclick="Button1_Click" 
                    CssClass="style22" Width="122px" Height="23px" />
            </td>
        </tr>
    </table>
            </asp:WizardStep>
            
            <asp:WizardStep ID="WizardStep2" runat="server" title="Detalle">
                <table class="style13">
                    <tr>
                        <td class="style24" colspan="4">
                            Relacionar la medida con servicios</td>
                    </tr>
                    <tr>
                        <td class="style18">
                             <asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="SqlDataSource1" DataTextField="SUSR_NOMBRE" 
                    DataValueField="SUSR_ID" style="font-family: Arial, Helvetica, sans-serif">
                </asp:DropDownList>
                </span>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString2.ProviderName %>" 
                    
                    SelectCommand="SELECT susr_id, susr_nombre FROM SERVICIOS WHERE 
(SUSR_ID &gt; 100 AND SUSR_ID IN 
(select susr_id from servicio_usr where fkusr_id = (Select usr_id from usuario where usr_login = :FKUSR_ID))) 
or susr_id &lt; 100">
                    <SelectParameters>
                        <asp:SessionParameter Name="FKUSR_ID" SessionField="usuario" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
                        </td>
                        <td class="style19">
                            &nbsp;</td>
                        <td class="style20">
                            &nbsp;</td>
                        <td class="style22">
                        </td>
                    </tr>
                    <tr>
                        <td class="style15">
                            <asp:Button ID="Button2" runat="server" OnClick="Button2_Click1" 
                                Text="Confirmar" />
                        </td>
                        <td class="style25">
                            &nbsp;</td>
                        <td class="style17">
                            &nbsp;</td>
                        <td class="style23">
                            &nbsp;</td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep ID="WizardStep3" runat="server" StepType="Finish" Title="Finalizar">
                <span class="style25">
                <asp:Label ID="Final" runat="server" Text="Operación realizada con EXITO." 
                    style="color: #33CC33; font-family: Arial, Helvetica, sans-serif;"></asp:Label>
                </span>
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Submenu" runat="server">
</asp:Content>
